#pragma strict
var ball:GameObject;
var springmusic:AudioClip;
function Start () {

}

function Update () {

}

function OnCollisionStay(other:Collision)
{
renderer.enabled=true;
ball.rigidbody.AddRelativeForce(Vector3.forward*1000);
transform.renderer.material.color=Color.red;

audio.PlayClipAtPoint(springmusic, transform.position);
}

function OnCollisionExit(other:Collision)
{
renderer.enabled=false;
}